package com.epmis.epmis.Mapper;

import com.epmis.epmis.pojo.*;
//import javafx.beans.binding.ObjectExpression;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.ListResourceBundle;

@Mapper
public interface MissionMapper {

    MissionProject getDeleteMissionProject(int id);

    Hour getHour(int id);

    List<Mission> getDeleteMission(int id);

    List<Mission> getMissionByParticipant(int id);

    Mission getMission(int id);

    List<Target> getSearchAllTarget(int id,int missionId);

    List<Target> getAllTarget(int id);

    List<Target> getDangerMission(int id);

    List<Target> getCompleteMission(int id);

    List<MissionProject> getAllProjectMission(int id);

    List<MissionProject> getSearchProjectMission(int id,int missionId);

    List<MissionProject> getMyProjectMission(int id,int principal_id);

    List<MissionProject> getDelayProjectMission(int id);

    List<Cost> getAllCost(int id);

    List<Cost> getSearchCost(int id,int missionId);

    List<Cost> getMyCost(int id,int principal_id);

    List<Cost> getBackCost(int id);

    List<Cost> getHappenCost(int id);

    List<Mission> getMyPrincipalMissionA(int id);

    List<Mission> getMyPrincipalMissionC(int id);

    List<Mission> getMyPrincipalMissionS(HashMap<String,Object> map);

    List<Mission> getHasMeMissionA(int id);

    List<Mission> getHasMeMissionC(int id);

    List<Mission> getHasMeMissionS(HashMap<String,Object> map);

    List<Mission> getMyCreateMissionA(int id);

    List<Mission> getMyCreateMissionC(int id);

    List<Mission> getMyCreateMissionS(HashMap<String,Object> map);

    List<Mission> getMyDeleteMissionA(int id);

    List<Mission> getMyDeleteMissionC(int id);

    List<Mission> getMyDeleteMissionS(HashMap<String,Object> map);

    List<Mission> getMyDoingMission(int id);

    List<Mission> getMyPostponeMission(int id);

    List<Comment> getMissionComment(int id);

    List<Comment> getExamineComment(int id);

    List<Activity> getMissionActivity(int id);

    List<MissionProject> getSonMission(int id);

    List<MissionProject> getRelMission(int id);

    List<MissionProject> getSelectSonMission(int id);

    List<Mission> getSelectBeforeMission(int id,int enterpriseId);

    List<Mission> getSelectAfterMission(int id,int enterpriseId);

    List<MissionProject> getSelectRelMission(int id,int enterpriseId);

    List<Mission> getBeforeMission(int id);

    List<Mission> getAfterMission(int id);

    List<Hour> getMissionWork(int id);

    List<Accessory> getMissionFile(int id);

    Accessory getMissionFileById(int id);

    Target getTargetMessage(int id);

    Cost getCostMessage(int id);

    MissionProject getMissionProjectMessage(int id);

    Comment getComment(int id);

    int updateProspect(HashMap<String, Object> map);

    int updateDeleteMissionSon(int id);

    int deleteSonMission(int id);

    int updateWorkTime(HashMap<String,Object> map);

    int updateDeleteRelMission(HashMap<String,Object> map);

    int updateDeleteMissionBefore(HashMap<String,Object> map);

    int updateDeleteMissionAfter(HashMap<String,Object> map);

    int updateMissionTitle(HashMap<String,Object> map);

    int updateMissionStatus(int status,int id);

    int updateMissionProjectStatus(HashMap<String,Object> map);

    int updateTargetStatus(HashMap<String,Object> map);

    int updateCostStatus(HashMap<String,Object> map);

    int updateMissionPrincipal(int principal_id,int id);

    int updateMissionStart(HashMap<String,Object> map);

    int updateMissionOver(HashMap<String,Object> map);

    int updateMissionPhase(HashMap<String,Object> map);

    int updateMissionPriority(HashMap<String,Object> map);

    int updateMissionDescription(HashMap<String,Object> map);

    int updateMissionParticipant(HashMap<String,Object> map);

    int updateTargetUnit(HashMap<String,Object> map);

    int updateTargetInitial(HashMap<String,Object> map);

    int updateTargetTarget(HashMap<String,Object> map);

    int updateTargetCurrent(HashMap<String,Object> map);

    int updateTargetExplain(HashMap<String,Object> map);

    int updateTargetFeedback(HashMap<String,Object> map);

    int updateTargetStandard(HashMap<String,Object> map);

    int updateCostFinance(HashMap<String,Object> map);

    int updateCostBudget(HashMap<String,Object> map);

    int updateCostExecute(HashMap<String,Object> map);

    int updateCostHappen(HashMap<String,Object> map);

    int updateCostPay(HashMap<String,Object> map);

    int updateCostInformation(HashMap<String,Object> map);

    int updateSonMission(int id,int missionId);

    int updateRelMission(HashMap<String,Object> map);

    int updateBeforeMission(HashMap<String,Object> map);

    int updateAfterMission(HashMap<String,Object> map);

    int updateMissionDelete(int id);

    int createMissionComment(Comment comment);

    int createWorkTime(Hour hour);

    int createFile(Accessory accessory);

    int deleteMissionComment(int id);

    int deleteMissionFile(int id);

    int deleteMission(int id);

    int deleteMissionAllComment(int id);

    int deleteMissionAllActivity(int id);

    int deleteProjectAccessory(int id);

    int deleteMissionProject(int id);

    int deleteCost(int id);

    int deleteTarget(int id);

    int deleteDeleteMissionProjectHour(int id);

    int deleteWorkTime(int id);

    int deleteRelMission(int id);
}
